#ifndef VIEW_H
#define VIEW_H
#include<mysql/mysql.h>
#include<stdio.h>
#include<iostream>
#include<errno.h>
#include<stdlib.h>
#include<string.h>
#include<string>
#include<semaphore.h>
#include<json/json.h>
#include<sys/types.h>
#include<sys/socket.h>

extern MYSQL* mpcon;
extern sem_t sem;
class view
{
	public:
		virtual int process(Json::Value val,int cli_fd)=0;
		virtual void responce(int n,int cli_fd,void *arg)=0;
};

#endif
